package com.finir.fakturisanje.domain.beans;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;

import com.finir.fakturisanje.domain.PoreskaTarifa;
import com.finir.fakturisanje.domain.StavkaFakture;

/*     */ @Entity
/*     */ public class PoreskaTarifaBean
/*     */   implements PoreskaTarifa, Serializable
/*     */ {
/*     */   private static final long serialVersionUID = 1L;
/*     */   private Long id;
/*     */   private String naziv;
/*     */   private Double akciza;
/*     */   private Double iznosPoreza;
/*     */   private List<StavkaFakture> stavkeFakture;
/*     */ 
/*     */   @OneToMany(targetEntity=StavkaFaktureBean.class, cascade={javax.persistence.CascadeType.ALL}, mappedBy="poreskaTarifa")
/*     */   public List<StavkaFakture> getStavkeFakture()
/*     */   {
/*  37 */     return this.stavkeFakture;
/*     */   }
/*     */ 
/*     */   public void setStavkeFakture(List<StavkaFakture> stavkeFakture)
/*     */   {
/*  46 */     this.stavkeFakture = stavkeFakture;
/*     */   }
/*     */ 
/*     */   public int hashCode()
/*     */   {
/*  51 */     int hash = 0;
/*  52 */     hash += ((this.id != null) ? this.id.hashCode() : 0);
/*  53 */     return hash;
/*     */   }
/*     */ 
/*     */   public boolean equals(Object object)
/*     */   {
/*  60 */     if (!(object instanceof PoreskaTarifaBean))
/*  61 */       return false;
/*     */ 
/*  63 */     PoreskaTarifaBean other = (PoreskaTarifaBean)object;
/*     */ 
/*  66 */     return ((((this.id != null) || (other.id == null))) && ((
/*  65 */       (this.id == null) || (this.id.equals(other.id)))));
/*     */   }
/*     */ 
/*     */   public String toString()
/*     */   {
/*  74 */     return this.naziv;
/*     */   }
/*     */ 
/*     */   @Id
/*     */   @GeneratedValue(strategy=GenerationType.AUTO)
/*     */   public Long getId()
/*     */   {
/*  85 */     return this.id;
/*     */   }
/*     */ 
/*     */   public void setId(Long id)
/*     */   {
/*  94 */     this.id = id;
/*     */   }
/*     */ 
/*     */   public String getNaziv()
/*     */   {
/* 103 */     return this.naziv;
/*     */   }
/*     */ 
/*     */   public void setNaziv(String naziv)
/*     */   {
/* 112 */     this.naziv = naziv;
/*     */   }
/*     */ 
/*     */   public Double getAkciza()
/*     */   {
/* 121 */     return this.akciza;
/*     */   }
/*     */ 
/*     */   public void setAkciza(Double akciza)
/*     */   {
/* 130 */     this.akciza = akciza;
/*     */   }
/*     */ 
/*     */   public Double getIznosPoreza()
/*     */   {
/* 139 */     return this.iznosPoreza;
/*     */   }
/*     */ 
/*     */   public void setIznosPoreza(Double iznosPoreza)
/*     */   {
/* 148 */     this.iznosPoreza = iznosPoreza;
/*     */   }
/*     */ }